package com.project.service;

import com.project.myBeans.MagfacultyInfoDetail;

import java.util.List;

/**
 * 行政人员服务整合 涉及用户表、行政人员信息表、学院表、系部表
 */
public interface MagFacultyService {

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function: 根据userId删除行政人员账号
     *
     * @param userId
     * @return
     */
    boolean removeOneByUserId(Integer userId);

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function: 创建行政人员账号
     * 
     * @param magfacultyInfoDetail
     * @return
     */
    boolean addOne(MagfacultyInfoDetail magfacultyInfoDetail) throws Exception;

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function: 根据用户表、行政人员信息表条件筛选
     *
     * @param magfacultyInfoDetail
     * @return
     */
    List<MagfacultyInfoDetail> findBatchByCondition(MagfacultyInfoDetail magfacultyInfoDetail);
}
